<?php

namespace App\Http\Requests;


class SmsRequest extends FormRequest
{

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, mixed>
     */
    public function rules(): array
    {
        return [
            'phone' => 'required|regex:/^1[3456789]\d{9}$/',
            'type' => 'required|string|in:login,register,reset_password'
        ];
    }
}
